that's the way the cookie crumbles

Translations
такова жизнь
I didn't get the job, but that's the way the cookie crumbles.
Я не получил работу, но такова жизнь.
Definitions
This phrase means that sometimes things do not go as planned or expected, and one must accept the outcome, even if it is disappointing.